import React from 'react'
import { Redirect, Route, Switch } from 'react-router-dom'
import ProductManage from '../../../views/app/production/ProductManage'
import OperateManage from '../../../views/app/operate/OperateManage'
import DeviceManageSteps from '../../../views/app/device/DeviceManageSteps'
import DeviceDetailSteps from '../../../views/app/device/deviceDetail/DeviceDetailSteps'
import identytySteps from '../../../views/identity/identytySteps'
import IndustryApp from '../../../views/app/IndustryApp'
import Log from '../../../views/app/log/Log'
import LogSteps from '../../../views/app/log/LogSteps'
import ProductManageStep from '../../../views/app/production/ProductManageStep'
import OperateSteps from '../../../views/app/operate/OperateSteps'

export default function NewRouter(props) {
  return (
    <Switch>
      <Route exact path="/app" component={IndustryApp}></Route>
      <Route exact path="/app/devmanage" component={DeviceManageSteps}></Route>
      <Route path="/app/devmanage/detail" component={DeviceDetailSteps}></Route>
      <Route path="/app/promanage" component={ProductManageStep}></Route>
      <Route path="/app/opemanage" component={OperateSteps}></Route>
      <Route path="/log" component={LogSteps}></Route>
      <Route path="/identity/data" component={identytySteps}></Route>
      <Redirect from="/" to="/app"></Redirect>
    </Switch>

  )
}

